package cn.fay.chapter08;

public class Filter{
	public String name() {
		return getClass().getSimpleName();
	}	
	public Waveform process(Waveform input) {	
		return input;
	}
}
class LowPass extends Filter{
	double cutoff;
	public LowPass(double cutoff){
		this.cutoff=cutoff;
	}
	public Waveform process(Waveform input){
		return input;
	}
}
class HighPass extends Filter{
	double cutoff;
	public HighPass(double cutoff){
		this.cutoff=cutoff;
	}
	public Waveform process(Waveform input){
		return input;
	}
}
class BandPass extends Filter{
	double lowCutoff,highCutoff;
	public BandPass(double lowCutoff,double highCutoff){
		this.lowCutoff=lowCutoff;
		this.highCutoff=highCutoff;
	}
	public Waveform process(Waveform input){
		return input;
	}
}